package com.ruoyi.comment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.model.comment.Comment;
import com.ruoyi.model.comment.params.CommentCategoryParams;
import com.ruoyi.model.comment.vo.ActivitySVo;
import com.ruoyi.model.question.Question;
import com.ruoyi.model.question.vo.QuestionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author : Afanda
 **/
@Mapper
public interface QuestionsMapper extends BaseMapper<Question> {



    /*
    * 根据id查询提问
    * */
    Question queryById(String id);


    /*
    * 根据id删除提问
    * */
    void removeByIdQuestions(String id);

    /*
    * 批量查询提问
    * */
    List<QuestionVO> queryList();

    /**
     * 增加目标提问阅读量
     *
     */
    int increaseReading(String id);

    /**
     *  根据用户评论增加回答数量
     *
     */

    int answerNum(String id);
}
